Configuring
Compressors and Decompressors
The following
example uses the ICQueryConfigure
// If the compressor handles a configuration dialog
box, display it
// using our application window as the parent
window.
if (ICQueryConfigure(hIC)) ICConfigure(hIC,
hwndApp);
The following
example shows how to obtain the state data using the ICGetState
dwStateSize = ICGetStateSize(hIC); // gets size of buffer required
h = GlobalAlloc(GHND, dwStateSize); // allocates buffer
ICGetState(hIC, (LPVOID)lpData, dwStateSize); // gets the state data
// Store the state data as required.
The following
example shows how to restore state data using the ICSetState
ICSetState(hIC, (LPVOID)lpData, dwStateSize); //
sets new state data